﻿using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using System;
using System.Collections.Generic;
using ZhonTai.Industry.Services.StationPlc.Dto;
using ZhonTai.Admin.Core.Dto;
using ZhonTai.Industry.Services.StationPlc.Dto.Output;
using ZhonTai.Industry.Services.StationPlc.Dto.Input;

namespace ZhonTai.Industry.Services.WorkStationPlc
{
    /// <summary>
    /// PLC设备关联服务
    /// </summary>
    public interface IStationPlcService
    {
        /// <summary>
        /// 查询
        /// </summary>
        Task<StationPlcGetOutput> GetAsync(long id);

        /// <summary>
        /// 查询工站
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Task<StationPlcGetOutput> GetStationAsync(long id);

        /// <summary>
        /// 分页查询
        /// </summary>
        Task<PageOutput<StationPlcGetPageOutput>> GetPageAsync(PageInput<StationPlcGetPageInput> input);

        /// <summary>
        /// 列表查询
        /// </summary>
        Task<IEnumerable<StationPlcGetListOutput>> GetListAsync(StationPlcGetListInput input);

        /// <summary>
        /// 新增
        /// </summary>
        Task<long> AddAsync(StationPlcAddInput input);

        /// <summary>
        /// 编辑
        /// </summary>
        Task UpdateAsync(StationPlcUpdateInput input);

        /// <summary>
        /// 删除
        /// </summary>
        Task<bool> DeleteAsync(long id);

        /// <summary>
        /// 软删除
        /// </summary>
        Task<bool> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        Task<bool> BatchSoftDeleteAsync(long[] ids);
    }
}